- Mid$(
- ------------------
- Basic
keyword
-
-
- Mid$(string,position)
- Gives all of string starting from position.
-
- Mid$(string,position,count)
- Gives some of string from position.
-
- Mid$(string
variable,position[,count])
= string2
- Overwrite all [or count] characters in string
variable,
- with characters from string2.
-
- Examples:
- a$=Mid$("ABCDEFGH",3)
- Rem
gives a$="DEFGH"
-
- a$=Mid$("ABCDEFG",3,2)
- Rem
gives a$="CD"
-
- a$="ABCDEFG"
- Mid$(a$,3,2)="XY"
- Rem
gives a$="ABXYEFG"